from django.db import models

# Create your models here.
CLASS_CHOICES = (
    ('bbn', 'Barbarian'),
    ('brd', 'Bard'),
    ('clr', 'Cleric'),
    ('drd', 'Druid'),
    ('ftr', 'Fighter'),
    ('mnk', 'Monk'),
    ('pld', 'Paladin'),
    ('rgr', 'Ranger'),
    ('rog', 'Rogue'),
    ('sor', 'Sorcerer'),
    ('wiz', 'Wizard'),
)
RACE_CHOICES = (
    ('human', 'Human'),
    ('dwarf', 'Dwarf'),
    ('elf', 'Elf'),
    ('gnome', 'Gnome'),
    ('halfelf', 'Half-Elf'),
    ('halforc', 'Half-Orc'),
    ('halfling', 'Halfling'),
)
GENDER_CHOICES = (
    ('m', 'Male'),
    ('f', 'Female'),
)
ALIGN_CHOICES = (
    ('lg', 'Lawful Good, "Crusader"'),
    ('ng', 'Neutral Good, "Benefactor"'),
    ('cg', 'Chaotic Good, "Rebel"'),
    ('ln', 'Lawful Neutral, "Judge"'),
    ('n', 'Neutral, "Undecided"'),
    ('cn', 'Chaotic Neutral, "Free Spirit"'),
    ('le', 'Lawful Evil, "Dominator"'),
    ('ne', 'Neutral Evil, "Malefactor"'),
    ('ce', 'Chaotic Evil, "Destroyer"'),
)

class Character(models.Model):
    char_name = models.CharField(max_length=40)
    player_name = models.CharField(max_length=40)
    char_class = models.CharField(max_length=1, choices=CLASS_CHOICES)
    char_race = models.CharField(max_length=1, choices=RACE_CHOICES)
    char_level = models.PositiveIntegerField(max_length=2)
    char_gender = models.CharField(max_length=1, choices=GENDER_CHOICES)
    char_alignment = models.CharField(max_length=2, choices=ALIGN_CHOICES)
    char_description = models.CharField(max_length=500)
